package com.ry.novel.exception;

import com.ry.novel.model.resp.IResultCode;

/**
 * @author ry
 * @since 2022-01-22 16:04
 **/
public class BusinessException extends RuntimeException{
    private IResultCode resultCode;

    public BusinessException(String msg){
        super(msg,null,false,false);
    }

    public BusinessException(IResultCode resultCode) {
        super(resultCode.getMsg(),null,false,false);
        this.resultCode = resultCode;
    }
}
